using System;
using UnityEditor;
using AK.Wwise.TreeView;

namespace AudioStudio.Editor
{
	[CustomPropertyDrawer(typeof(AuxBus))]
	public class AuxBusDrawer : AudioBaseTypeDrawer
	{
		public override void SetupSerializedProperties(SerializedProperty property)
		{
			m_objectType = AkWwiseProjectData.WwiseObjectType.AUXBUS;
			m_typeName = "AuxBus";
		}
        
        protected override void OnPickerChanged(SerializedProperty property, TreeViewItem treeItem)
        {
            PickerChanged(property, treeItem, AkWwiseProjectData.Instance.AuxBusWwu);
        }
    }
}